<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>个人资料</title>
    <link rel="stylesheet" th:href="@{/layui/layui.css}" media="all"/>
    <link rel="stylesheet" th:href="@{/css/index.css}"/>


</head>
<body>
    <!--系统管理员的个人信息-->
    <div class="main laoshi">
        <div class="m_all20">
            <blockquote class="clear layui-elem-quote">个人资料</blockquote>
            <form action="" class="layui-form" method="post">
                <center>
                    <table class="tables w_50 f15 hl45 ll">
                        <tbody>
                        <tr>
                            <th>个人资料</th>
                        </tr>
                        <tr>
                            <td class="pl50">编号：　
                                <div class="layui-inline w_50"><input type="text" id="dmId" name="names" class="layui-input" /></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="pl50">姓名：　
                                <div class="layui-inline w_50"><input type="text" id="tname" name="names" class="layui-input" /></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="pl50">性别：　
                                <div class="layui-inline w_50"><input type="text" id="tsex" name="sex" class="layui-input" value=""/>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="pl50">手机：　
                                <div class="layui-inline w_50"><input type="text" id="tphone" name="tel" class="layui-input" value=""/>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="pl50">邮箱：　
                                <div class="layui-inline w_50"><input type="text" id="tremail" name="email" class="layui-input"
                                                                      value=""/></div>
                            </td>
                        </tr>
                        <tr>
                            <!-- <td align="center" class="p_all10">
                                 <button type="submit" class="layui-btn layui-btn-big layui-btn-normal white"
                                         name="into_class" onclick="return check(this.form)">保存
                                 </button>
                                 　　
                                 <button type="reset" class="layui-btn layui-btn-big layui-btn-warm white" name="reset"
                                         id="backid">清空
                                 </button>
                             </td>-->
                        </tr>
                        </tbody>
                    </table>
                </center>
            </form>
        </div>
    </div>
<script type="text/javascript" th:src="@{/js/jquery-3.2.1.js}"></script>
<script th:src="@{/layui/layui.all.js}"></script>
<script th:ononline="javascript">
        $.get("dm/sess", function (obj) {
            $('#dmId').val(obj.dm_id);
            $('#tname').val(obj.name);
            $('#tsex').val(obj.sex);
            $('#tphone').val(obj.phone);
            $('#tremail').val(obj.email);
        })
</script>

</body>
</html>